package com.mjawor.lpgroovy.vars

class FloatVar extends VarImpl<Float> {

	public FloatVar(String id) {
		super(id)
		lb(Float.MIN_VALUE).ub(Float.MAX_VALUE)
	}

	public FloatVar(String id, Float val) {
		super(id,val)
		lb(Float.MIN_VALUE).ub(Float.MAX_VALUE)
	}

    @Override
	Class getType() {
		return Float
	}

    @Override
    Object clone() {
        def result = new FloatVar(id, value)
        result.ub(ub()).lb(lb())
        result.value = value
        return result
    }
}
